package com.jiang.service.Impl;

import com.jiang.dao.BookDao;
import com.jiang.service.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

//@Component
@Service
public class BookServiceImpl implements BookService {
    
    @Autowired //自动装配
    private BookDao bookDao;
    
    @Override
    public void save(){
        System.out.println("book service save...");
        bookDao.save();
    }
    
}
